package com.mounting.wechat.modules.mp.service;

import com.mounting.wechat.modules.mp.entity.WxMpMessage;
import com.mounting.wechat.modules.mp.entity.WxMpOutMessage;

/**
 * @author : lianghanmao
 * @date : 2022/11/17
 */
public interface WechatMpService {

    /**
     * 校验签名
     * @param signature
     * @param timestamp
     * @param nonce
     * @return
     */
    boolean verifySign(String signature, String timestamp, String nonce);

    /**
     * 主动发送消息（消息推送）
     * @param  wxMpMessage:消息内容
     * @param appid appid
     * @return
     */
    boolean activelySendMessages(String appid, WxMpMessage wxMpMessage);

    /**
     * 被动发送消息(自动回复)
     * @param wxMpMessage：消息内容
     * @return
     */
    String passivelySendMessages(WxMpMessage wxMpMessage);
}
